import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/components/ye_xiu/archives/archives_center_bottom_content.dart';
import 'package:flutter_eve_plugin/components/ye_xiu/archives/archives_center_bottom_title.dart';
import 'package:flutter_eve_plugin/components/ye_xiu/archives/archives_center_top_content.dart';
import 'package:flutter_eve_plugin/components/ye_xiu/archives/archives_center_top_title.dart';
import 'package:flutter_eve_plugin/model/ye_xiu/achieves/archieves_role_entity.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';
import 'package:flutter_eve_plugin/utils/image_util.dart';

class ArchivesCenterWidget extends StatelessWidget {


  final ArchievesRoleRoleinfo info;
  final ArchievesRoleCardinfo cardinfo;

  const ArchivesCenterWidget({
    Key key,this.info,this.cardinfo
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: setRatio(360),
      height: setRatio(280),
      margin: EdgeInsets.only(top: setRatio(20), left: setRatio(7.5)),
      child: Stack(
        overflow: Overflow.visible,
        children: <Widget>[
          Image.asset(
            imageUtilYeXiu('archives/icon_archivers_center_bg@3x'),
            width: setRatio(360),
            height: setRatio(280),
          ),
          ArchivesCenterTopTitleWidget(),
          ArchivesCenterTopContentWidget(info: info,cardinfo: cardinfo),
          ArchivesCenterBottomTitleWidget(info: info,),
          ArchivesCenterBottomContentWidget(info: info,cardinfo: cardinfo,),
        ],
      ),
    );
  }
}
